package com.gxa.feign;

import java.math.BigDecimal;

import com.gxa.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;


//这是账户服务暴露的服务
@FeignClient("seata-service-account")
public interface AccountFeignService {

	// 哪个账户 扣减多少
	@PostMapping(value = "/account/decrease")
	Result decrease(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);
}